package com.itheima.homework.homework7;

public class Manager extends Worker{
    private int bone;

    public Manager() {

    }

    public Manager(String name, String id, int salary, int bone) {
        super(name, id, salary);
        this.bone = bone;
    }

    public int getBone() {
        return bone;
    }

    public void setBone(int bone) {
        this.bone = bone;
    }

    @Override
    public void work() {
        System.out.println("姓名为:"+getName()+",工号为:"+getId()+",工资为:"+getSalary()+",奖金为:"+bone+",的项目经理正在管理程序员写代码");
    }
}
